package forces;
import physicalObjects.Mass;
import simulation.Global;

/**
 * 
 * @author Bruce Fu
 *
 */
public class Viscosity extends Force{
    /**
     * Calculate the viscosity force
     */
    public Viscosity() {
        super(0,0);
    }
    
    public void setViscorsity(Mass myMass) {
        setDirection(myMass.getVelocity().getDirection()+180);
        setMagnitude(myMass.getVelocity().getMagnitude() * Global.getViscosity());
    }

}
